package com.dmpp.captcha;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author 北橙
 * @Create 2022/6/13
 * @Description 验证码配置类
 */
@Data
@ConfigurationProperties(prefix = "spring.captcha")
public class CaptchaProperties {

    /**
     * 验证码长度
     */
    private Integer width = 100;

    /**
     * 验证码高度
     */
    private Integer height = 50;

    /**
     * 验证码位数
     */
    private Integer codeCount = 5;

    /**
     * 账号参数名称
     */
    private String accountParamName = "account";

    /**
     * 验证码参数名称
     */
    private String paramName = "code";

    /**
     * 验证码类型
     */
    private CaptchaType type = CaptchaType.RandomCaptcha;
}
